{% extends "base.html" %}
{% block title %}判断文章类型{% endblock %}
{% block content %}


{%if result%}
<div class="well">
    <p>{{ result.class }}</p>n
    {% for item in result.details %}
        <p>{{ item }}</p>
    {% endfor %}
</div>


{%endif%}
    <div class="row">
        <form method="post" action="/predict_class" role="form" class="form-horizontal">


            <div class="form-group">
                <label class="col-md-4 control-label">是否带有html标签</label>
                <div class="col-md-8">
                    <label class="radion-inline">
                        <input type="radio" class="form-control" id="is_html1" name="is_html" value="1"> 否
                    </label>
                    <label class="radion-inline">
                        <input type="radio" class="form-control" id="is_html2" name="is_html" value="2" checked> 是
                    </label>
                </div>
            </div>

            <div class="form-group">
                <label for="content" class="col-md-4 control-label">文章内容</label>
                <div class="col-md-8">
                    <textarea class="form-control" id="content" name="content" cols="8" rows="15">{{ content }} </textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="content" class="col-md-4 control-label"></label>
                <div class="col-md-8">
                    <input type="submit" class="btn btn-primary" />
                </div>
            </div>

        </form>
    </div>
{% endblock%}
